package com.wp.rcm.filter;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//@Configuration
public class ConfigFilter {
//    @Bean
//    public FilterRegistrationBean filterRegist(){
//        FilterRegistrationBean registrationBean =new FilterRegistrationBean();
//        registrationBean.setFilter(new DemoFilter());
//        registrationBean.setName(DemoFilter.class.getName());
//        registrationBean.addUrlPatterns("/templates/**"); //进入hello前先进入过滤器
//        registrationBean.setOrder(5);
//        return registrationBean;
//    }
}
